/*
 * CastDRAndroid
 * Copyright (c) 2014 Christian Holm Christensen
 *
 * This program is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.cholm.media.castdr;// CastDRAndroid


import android.content.Context;
import android.preference.DialogPreference;
import android.util.AttributeSet;
import android.view.View;
import android.webkit.WebView;

/**
 * Created by cholm on 4/4/14.
 */
public class AboutPreference extends DialogPreference {
    WebView mWV = null;
    public AboutPreference(Context context, AttributeSet attrs) {
        super(context, attrs);
        setPersistent(false);
        setDialogLayoutResource(R.layout.about);
    }
    @Override
    public View onCreateDialogView() {
        View v = super.onCreateDialogView();
        mWV = (WebView)v.findViewById(R.id.aboutWeb);
        mWV.loadUrl("file:///android_asset/about.html");
        return v;
    }
    @Override
    public void onBindDialogView(View view) {
        super.onBindDialogView(view);

    }
    @Override
    public void onDialogClosed(boolean positiveResult) {
        super.onDialogClosed(positiveResult);
    }
}
